package com.chandra.pos.dao;


import com.chandra.pos.EntityNotFoundException;
import com.chandra.pos.dao.entity.OrderEntity;
import com.chandra.pos.model.OrderFilter;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * UserEntity: chkumar
 * Date: 5/11/12
 * Time: 2:21 PM
 * To change this template use File | Settings | File Templates.
 */
public interface OrderDAO {

    public OrderEntity saveOrder(OrderEntity order);

    public boolean removeOrder(OrderEntity order);

    public OrderEntity updateOrder(OrderEntity order);


    public OrderEntity getOrder(long orderId) throws EntityNotFoundException;


    List<OrderEntity> listOrdersUsingFilter(OrderFilter filter);
}
